﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace UT3Bots.Visualizer.Controls
{
    public partial class Tooltip : UserControl
    {
        private const int ZINDEX = 1000;

        public Tooltip(string type, string description,UTItems.UTVector location, double left, double top, double scale)
        {
            InitializeComponent();

            TypeText = type;
            DescriptionText = description;
            LocationText = string.Format("X: {0}\nY: {1}\nZ: {2}", location.X, location.Y, location.Z); 

            Canvas.SetLeft(this, left);
            Canvas.SetTop(this, top);
            Canvas.SetZIndex(this, ZINDEX);
        }

        public string TypeText
        {
            get { return txtType.Text; }
            set { txtType.Text = value; }
        }

        public string DescriptionText
        {
            get { return txtDescription.Text; }
            set { txtDescription.Text = value; }
        }

        public string LocationText
        {
            get { return txtLocation.Text; }
            set { txtLocation.Text = value; }
        }
    }
}
